import * as FN from '@/public';

/**
 * 挂载自己的组件
 */
export const use = (Vue) => {
  Vue.component("AElForm", () => import(`@/components/AElForm`));
  Vue.component("AElFormItem", () => import(`@/components/AElFormItem`));
  Vue.component("AElFormRex", () => import(`@/components/AElFormRex`));
  Vue.component("AElTable", () => import(`@/components/AElTable`));
  Vue.component("AElPagination", () => import(`@/components/AElPagination`));
  Vue.component("AGridSkeleton", () => import(`@/components/AGridSkeleton`));
};

/**
 * 创建自己的数据与方法
 */
export const create = function (Vue) {
  Vue.prototype.$FN = FN;
  use(Vue);
};